package pixelwaks.core.impl;

import java.awt.image.BufferedImage;

public class Weapon {

	private int strength;
	//private int weight;
	private int numberOfShots; // -1 = infinite
	private BufferedImage img;
	
	public Weapon(BufferedImage i, int weight, int strength, int numberOfShots) {
		
		img = i;
		//this.weight = weight;
		this.strength = strength;
		this.numberOfShots = numberOfShots;
	}

	public int getStrength() {
		
		return strength;
	}
	
	/*public int getWeight() {
		
		return weight;
	}*/
	
	public int getNumberOfShots() {
		return numberOfShots;
	}
	
	public void setNumberOfShots(int s) {
		numberOfShots = s;
	}
	
	public void decreaseNumberOfShots() {
		if(numberOfShots > 0)
			numberOfShots--;
	}
	
	public BufferedImage getImage() {
		
		return img;
	}
}
